package day_01;

/**
 * InnerClass Singleton
 */
public class InnerClassSingleton {
    private InnerClassSingleton(){}

    public static InnerClassSingleton getSingleton(){
        return InnerClass.singleton;
    }

    private static class InnerClass{
        private static InnerClassSingleton singleton = new InnerClassSingleton();
    }


    public static void main(String[] args) {
        System.out.println(InnerClassSingleton.getSingleton().equals(InnerClassSingleton.getSingleton()));
    }
}
